<template>
	<view class="">
		<view class="textCenter bold font30">{{data.tittle}}</view>
		<view class="textR">{{data.addTime}}</view>
		 <jyf-parser :html="html" ></jyf-parser>
		 <!-- <rich-text :nodes="html"></rich-text> -->
	</view>
</template>

<script>
		import jyfParser from "@/components/jyf-parser/jyf-parser";
	export default{
		data(){
			return{
				html:'',
				data:''
			}
		},
		
		onLoad(option) {
			this.getdetail(option.id)
		},
		methods:{
			getdetail(id){
				this.$http.get('/newsInfo/getNewsInfoById',{newsId:id}).then(res => {
					if (res.code == '0') {
						this.data = res.data
						this.html = res.data.content
						
					}else{
						uni.showToast({
							icon:"none",
							title:res.msg
						})
					}
				})
			},
			
		}
	}
</script>

<style lang="less" scoped>
	page{
		padding: 0 24rpx;
	}
</style>
